#include "minigrep.hpp"
#include <fmt/format.h>
int main(int argc, char* argv[]) {
    try {
        Config config = parse_config(argc, argv);
        run(config);
    } catch (const std::runtime_error& e) {
        fmt::print("Error: {}\n", e.what());
        std::exit(EXIT_FAILURE);
    }
    return 0;
}